package com.management.service;

import com.management.controller.form.ChangeRoleNameForm;
import com.management.controller.form.RolePageForm;
import com.management.model.Role;
import com.baomidou.mybatisplus.extension.service.IService;
import com.management.utils.Result;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 龙世超
 * @since 2022-03-23
 */
public interface RoleService extends IService<Role> {

    Result findRoleByPage(RolePageForm rolePageForm);

    Result findAllRole();

    Result closeRole(Integer roleNum);

    Result checkRoleState(Integer roleNum);

    Result changeRoleName(ChangeRoleNameForm changeRoleNameForm);

    Result delRole(Integer roleNum);
}
